package com.kingint.web.portal.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kingint.mbg.ser.entity.SerCycleCleanPlan;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.*;

/**
 * <p>
 * 周期卫生计划表 服务类
 * </p>
 *
 * @author wxh
 * @since 2021-01-11
 */
public interface CycleCleanPlanService extends IService<SerCycleCleanPlan> {

    /**
     * 创建周期计划
     * @param serCycleCleanPlan
     * @return
     */
    boolean createPlan(SerCycleCleanPlan serCycleCleanPlan);

    /**
     * 更新周期计划
     * @param serCycleCleanPlan
     * @return
     */
    Boolean updatePlan(SerCycleCleanPlan serCycleCleanPlan);

    /**
     * 根据id查找详情
     * @param id
     * @return
     */
    SerCycleCleanPlan getonebyid(Integer id);

    /**
     * 分页获取
     * @param page
     * @return
     */
    IPage<SerCycleCleanPlan> getpage(Page<SerCycleCleanPlan> page);

    /**
     * 获取所有信息
     * @return
     */
    List<SerCycleCleanPlan> getalllist();
}
